package com.disapand.mybaby.handle;

import lombok.Getter;

/**
 * @author disapand
 */

@Getter
public enum ResultCode {
    
    /**
     * 操作成功的响应枚举
     */
    SUCCESS(1000, "请求成功"),

    /**
     * 响应出错的响应枚举
     */
    FAILED(1001, "响应失败"),

    /**
     * 参数校验失败的响应枚举
     */
    VALIDATE_FAILED(1002, "参数校验失败"),

    /**
     * 系统异常的响应枚举
     */
    ERROR(5000, "未知错误");

    /**
     * 响应状态码
     */
    private int code;

    /**
     * 响应信息
     */
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
